Open
Conversation
hydraxman
reviewed
Jul 17, 2023
|
|
||
| import java.util.Arrays; | ||
|
|
||
| public class GptSuggestionService { |
hydraxman
reviewed
Jul 17, 2023
| " 3. Propose potential solution to fix this exception.\n"; | ||
|
|
||
| String ExceptionAnalyze(String exceptionStr, String logPath) { | ||
| client = new AzureOpenAIServiceClient( |
hydraxman
reviewed
Jul 17, 2023
| " 1. Give me a summary about this exception.\n" + | ||
| " 2. Assume root cause of this exception.\n" + | ||
| " 3. Propose potential solution to fix this exception.\n"; | ||
|
|
Member
There was a problem hiding this comment.
上面的prompt是最终版的么?看起来也是过于简单。可以参考 https://www.bilibili.com/video/BV1jm4y1y7rA 学习prompt技巧
hydraxman
reviewed
Jul 17, 2023
| String logContent = ""; | ||
| ChatRequest req = new ChatRequest(); | ||
| req.setMessages(Arrays.asList( | ||
| new ChatMessage("system", exceptionAnalyzePrompt), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft PR for exception GPT analyze
Linked GitHub issue ID: #
Pull Request Checklist
Does this introduce a breaking change?
If this introduces a breaking change for Hydra Lab users, please describe the impact and migration path.
How you tested it
Please make sure the change is tested, you can test it by adding UTs, do local test and share the screenshots, etc.
Please check the type of change your PR introduces:
Feature UI screenshots or Technical design diagrams
If this is a relatively large or complex change, kick it off by drawing the tech design with PlantUML and explaining why you chose the solution you did and what alternatives you considered, etc...